package com.bee.bootstrap.plugs.shiro;

import org.apache.shiro.authc.AuthenticationToken;

public class JwtToken implements AuthenticationToken {

    // 密钥
    private String token;
    //来源
    private String client;

    public JwtToken(String token,String client) {
        this.token = token;
        this.client=client;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return client;
    }
}